﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="pinyin.aspx.cs" Inherits="temp_pinyin" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
	<script type="text/javascript" src="../js/py.js"></script></head>
<body>
    <form id="form1" runat="server">
    <div>
        <textarea id=kevin cols=100 rows=10>我要转成拼音</textarea><br>
        <button onclick="test.innerHTML = toPinyin(kevin.innerText)">转换</button>
        <button onclick="test.innerHTML = toPinyinOnly(kevin.innerText)">仅仅首字母</button>
        <button onclick="test.innerHTML = kevin.innerText.split('').sort(pinyinSort).join('')">排序</button>
        <div id=test style="font-size:16px;"></div>
    </div>
    </form>
</body>
</html>
